import { forwardRef, Module } from '@nestjs/common';
import { PositionsService } from './positions.service';
import { PositionsController } from './positions.controller';
import { GateModule } from '../gate/gate.module';
import { UserModule } from '../user/user.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TongBuPosition } from '../tong-bu-position/entities/tong-bu-position.entity';
import { Position } from './entities/position.entity';
import { TongBuPositionModule } from '../tong-bu-position/tong-bu-position.module';
import { OrderModule } from '../order/order.module';

@Module({
  imports: [TypeOrmModule.forFeature([Position]), TypeOrmModule.forFeature([TongBuPosition]), GateModule, forwardRef(() => UserModule), TongBuPositionModule, OrderModule],
  controllers: [PositionsController],
  providers: [PositionsService],
  exports: [PositionsService],
})
export class PositionsModule {}
